﻿using System;
using System.Linq;

namespace FBGraph.ClientGenerator.CodeGen
{
    public class TypeArgumentsList : CodeGenObjectList<TypeReference>
    {
        public TypeArgumentsList(params TypeReference[] typeArguments)
            : base(", ", typeArguments) { }

        public override void Write(CodeGenWriter writer)
        {
            if (this.Any())
            {
                writer.Write('<');
                base.Write(writer);
                writer.Write('>');
            }
        }
    }
}